README

This folder contains the replication material for ``How to Use Spatial Instruments'' by James Sundquist. The folder contains the following files:

simulation_study.R
Generates datasets, estimates a coefficient of interest using three different estimators, and saves the results for each dataset. Because conducting this study takes a half an hour or more to complete on a circa-2017 laptop, I also include the saved results.

results_cs.RData
Saved results of the simulation study for cross-sectional data.

results_panel.RData
Saved results of the simulation study for panel data.


simulation_images.R
Creates images used in the appendix. Also contains code used to create Figure 3 in the article.

Executing each script may require the installation of several R packages, which are clearly listed at the beginning of each file.